package ch04Spring.demo;

public class HelloSpring {
    private String hello=null;
    /**
     * 输出方法，从Spring配置文件中获取属性并输出
     */
    public void print(){
        System.out.println("Spring say:,"+this.getHello()+"!");
    }
    public String getHello(){
        return hello;
    }
    public void setHello(String hello){
        this.hello=hello;
    }
}
